package com.lg.head_first.chap02.observer.jdk_observer;

/**
 * @author by Mr. Li 2020/7/31 16:38
 */
public class Main {
    public static void main(String[] args) {
        WeatherData weatherData = new WeatherData();

        HeatIndexDisplay heatIndexDisplay = new HeatIndexDisplay(weatherData);
        System.out.println();
        StatisticsDisplay statisticsDisplay = new StatisticsDisplay(weatherData);
        System.out.println();
        ForecastDisplay forecastDisplay = new ForecastDisplay(weatherData);
        System.out.println();

        weatherData.setMeasurements(80, 65, 30.4f);
        weatherData.setMeasurements(80, 65, 30.4f);
        weatherData.setMeasurements(80, 65, 30.4f);
    }
}
